//
//  WD_CollectionViewCellTimeLine.m
//  BUDING
//
//  Created by 景强 on 16/3/31.
//  Copyright © 2016年 HanWoonYong. All rights reserved.
//

#import "WD_CollectionViewCellTimeLine.h"

@implementation WD_CollectionViewCellTimeLine


- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageUrl = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 80, 80)];
        self.imageUrl.backgroundColor = [UIColor whiteColor];
        
        [self.contentView addSubview:self.imageUrl];
        
        
        
        
    }
    
    
    return self;
}

- (void)setImageModel:(WD_imageModel *)imageModel {
    
    _imageModel = imageModel;
    
    
    [self.imageUrl sd_setImageWithURL:[NSURL URLWithString:_imageModel.url] placeholderImage:[UIImage imageNamed:@"占位图_"]];
    
}












/*
 
 
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

@end
